package com.wangba.service;

import com.wangba.dao.TempUserMapper;
import com.wangba.pojo.TempUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TempUserServiceImpl implements TempUserService {

    @Autowired
    private TempUserMapper tempUserMapper;


    public int addTempUser(TempUser tempUser) {
        return tempUserMapper.addTempUser(tempUser);
    }

    public int deleteTempUserById(int id) {
        return tempUserMapper.deleteTempUserById(id);
    }

    public int updateTempUser(TempUser tempUser) {
        return tempUserMapper.updateTempUser(tempUser);
    }

    public TempUser queryTempUserById(int id) {
        return tempUserMapper.queryTempUserById(id);
    }

    public List<TempUser> queryAllTempUser() {
        return tempUserMapper.queryAllTempUser();
    }

    public TempUser queryTempUserByNo(String tempUserName) {
        return tempUserMapper.queryTempUserByNo(tempUserName);
    }
}
